a={'TERMINATE':False,'VIEW_HANDS':False,'SLEEPED':True}
def set(key,val):
    a[key] = val
def get(key):
    if key in a:
        return a[key]
    else:
        return None
def switch(key):
    if key in a:
        a[key]=~a[key]
        return a[key]
    else:
        return None
    